<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order".
 *
 * @property integer $id
 * @property integer $user_id
 * @property string $car_number
 * @property string $name
 * @property string $station
 * @property string $type
 * @property string $oil_mass
 * @property string $time
 * @property string $money
 */
class Order extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id'], 'integer'],
            [['car_number', 'name', 'station', 'type', 'oil_mass', 'time', 'money'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'car_number' => 'Car Number',
            'name' => 'Name',
            'station' => 'Station',
            'type' => 'Type',
            'oil_mass' => 'Oil Mass',
            'time' => 'Time',
            'money' => 'Money',
        ];
    }
}
